package com.gexada.simplechat.data;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

public interface MessageRepository extends CrudRepository<Message, Long> {

	List<Message> findAllByFromAndToAndIsRead(String from, String to, boolean isRead);

	int countByFromAndToAndIsRead(String from, String to, boolean isRead);
}
